West-Midlands | 26-ITP-May | Maryam Janjua | Sprint 3 | Implement and Rewrite Tests - #1603
maryam-devio wants to merge 6 commits into
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
2 similar comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Hello! Thank you for the comments. I’ve made all the changes you mentioned in all files and pushed the updates as well. Thank you! |
| if (denominator === 0){ | ||
| return false; | ||
| } | ||
| if(Math.abs(numerator) < Math.abs(denominator)){ | ||
| return true; | ||
| } | ||
| else{ |
There was a problem hiding this comment.
Why not use a formatter to keep the code consistently formatted?
| if(card=="A♠" || card=="A♥" || card=="A♦" || card == "A♣"){ | ||
| return 11; | ||
| } | ||
| if(card=="J♠" || card=="J♥" || card=="J♦" || card == "J♣" || | ||
| card=="Q♠" || card=="Q♥" || card=="Q♦" || card == "Q♣" || | ||
| card=="K♠" || card=="K♥" || card=="K♦" || card == "K♣" | ||
| ){ | ||
| return 10; | ||
| } |
There was a problem hiding this comment.
Note: Code works but could probably be simplified.
| }); | ||
|
|
||
| // Proper fractions with positive values | ||
| test("should return true when the absolute value of the numerator is less than the absolute value of the denominator", () => { |
There was a problem hiding this comment.
Note: We could also use pseudo-code and math notations like abs(...) or | ... | to denote "absolute value of" in the descriptions.
|
Closing PR because the May ITP run has finished. Feel free to re-open if you're still working on it. |
|
Your PR didn't include a Task ID in its description. Make sure you have put the correct Task ID in its description. If this PR is not coursework, please add the NotCoursework label (and message on Slack in #cyf-curriculum or it will probably not be noticed). If this PR needs reviewed, please add the 'Needs Review' label to this PR after you have resolved the issues listed above. |
Learners, PR Template
Self checklist
Changelist
I have implement all the tasks according to the requirements, and test all the changes made.